<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>XenC: include/kenlm/util/double-conversion/utils.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">XenC
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Open-source tool for data selection in NLP</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_5417fc49d29c4cfca6bc3f52c9c7deba.html">kenlm</a></li><li class="navelem"><a class="el" href="dir_9ec25de6763e2dc47109730f881b7e3e.html">util</a></li><li class="navelem"><a class="el" href="dir_5fd0dc67f55ed56e6f450361f3921d3b.html">double-conversion</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#namespaces">Namespaces</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">utils.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdlib.h&gt;</code><br />
<code>#include &lt;string.h&gt;</code><br />
<code>#include &lt;assert.h&gt;</code><br />
<code>#include &lt;stdint.h&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for utils.h:</div>
<div class="dyncontent">
<div class="center"><img src="utils_8h__incl.png" border="0" usemap="#include_2kenlm_2util_2double-conversion_2utils_8h" alt=""/></div>
<map name="include_2kenlm_2util_2double-conversion_2utils_8h" id="include_2kenlm_2util_2double-conversion_2utils_8h">
</map>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="utils_8h__dep__incl.png" border="0" usemap="#include_2kenlm_2util_2double-conversion_2utils_8hdep" alt=""/></div>
<map name="include_2kenlm_2util_2double-conversion_2utils_8hdep" id="include_2kenlm_2util_2double-conversion_2utils_8hdep">
<area shape="rect" id="node2" href="bignum-dtoa_8h.html" title="include/kenlm/util\l/double&#45;conversion/bignum\l&#45;dtoa.h" alt="" coords="5,92,187,144"/>
<area shape="rect" id="node3" href="bignum_8h.html" title="include/kenlm/util\l/double&#45;conversion/bignum.h" alt="" coords="210,99,403,137"/>
<area shape="rect" id="node4" href="diy-fp_8h.html" title="include/kenlm/util\l/double&#45;conversion/diy&#45;fp.h" alt="" coords="427,99,608,137"/>
<area shape="rect" id="node7" href="double-conversion_8h.html" title="include/kenlm/util\l/double&#45;conversion/double\l&#45;conversion.h" alt="" coords="633,92,810,144"/>
<area shape="rect" id="node8" href="fast-dtoa_8h.html" title="include/kenlm/util\l/double&#45;conversion/fast\l&#45;dtoa.h" alt="" coords="834,92,993,144"/>
<area shape="rect" id="node9" href="fixed-dtoa_8h.html" title="include/kenlm/util\l/double&#45;conversion/fixed\l&#45;dtoa.h" alt="" coords="1017,92,1183,144"/>
<area shape="rect" id="node10" href="strtod_8h.html" title="include/kenlm/util\l/double&#45;conversion/strtod.h" alt="" coords="1208,99,1390,137"/>
<area shape="rect" id="node5" href="cached-powers_8h.html" title="include/kenlm/util\l/double&#45;conversion/cached\l&#45;powers.h" alt="" coords="326,192,506,244"/>
<area shape="rect" id="node6" href="ieee_8h.html" title="include/kenlm/util\l/double&#45;conversion/ieee.h" alt="" coords="530,199,704,237"/>
</map>
</div>
</div>
<p><a href="utils_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdouble__conversion_1_1_vector.html">double_conversion::Vector&lt; T &gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdouble__conversion_1_1_string_builder.html">double_conversion::StringBuilder</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacedouble__conversion"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedouble__conversion.html">double_conversion</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a1dfb2cb545fa51edb2760047aa4ce45f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_8h.html#a1dfb2cb545fa51edb2760047aa4ce45f">ASSERT</a>(condition)        &#160;&#160;&#160;(assert(condition))</td></tr>
<tr class="separator:a1dfb2cb545fa51edb2760047aa4ce45f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add09d39ec888c2d7e12877586f29368d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_8h.html#add09d39ec888c2d7e12877586f29368d">UNIMPLEMENTED</a>()&#160;&#160;&#160;(abort())</td></tr>
<tr class="separator:add09d39ec888c2d7e12877586f29368d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8fee49eb2770153a2dd95953f9b74e5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_8h.html#ad8fee49eb2770153a2dd95953f9b74e5">UNREACHABLE</a>()  &#160;&#160;&#160;(abort())</td></tr>
<tr class="separator:ad8fee49eb2770153a2dd95953f9b74e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af60c14e9c588537ba3fd925be39e29cd"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_8h.html#af60c14e9c588537ba3fd925be39e29cd">UINT64_2PART_C</a>(a,  b)&#160;&#160;&#160;(((static_cast&lt;uint64_t&gt;(a) &lt;&lt; 32) + 0x##b##u))</td></tr>
<tr class="separator:af60c14e9c588537ba3fd925be39e29cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f00183ae427b2e71b739a86afaf4d54"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_8h.html#a5f00183ae427b2e71b739a86afaf4d54">ARRAY_SIZE</a>(a)                                                                  </td></tr>
<tr class="separator:a5f00183ae427b2e71b739a86afaf4d54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a33c52fbcec82e9f80752504cef5ec7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_8h.html#a8a33c52fbcec82e9f80752504cef5ec7">DISALLOW_COPY_AND_ASSIGN</a>(TypeName)        </td></tr>
<tr class="separator:a8a33c52fbcec82e9f80752504cef5ec7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfd97435e2829938f396946b00559b71"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="utils_8h.html#acfd97435e2829938f396946b00559b71">DISALLOW_IMPLICIT_CONSTRUCTORS</a>(TypeName)</td></tr>
<tr class="separator:acfd97435e2829938f396946b00559b71"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a8fcbedaa7b8db4ff4c6c37cb52ebb738"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a8fcbedaa7b8db4ff4c6c37cb52ebb738"><td class="memTemplItemLeft" align="right" valign="top">static T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacedouble__conversion.html#a8fcbedaa7b8db4ff4c6c37cb52ebb738">double_conversion::Max</a> (T a, T b)</td></tr>
<tr class="separator:a8fcbedaa7b8db4ff4c6c37cb52ebb738"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94fc7999ec1907245f51992efe70d097"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a94fc7999ec1907245f51992efe70d097"><td class="memTemplItemLeft" align="right" valign="top">static T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacedouble__conversion.html#a94fc7999ec1907245f51992efe70d097">double_conversion::Min</a> (T a, T b)</td></tr>
<tr class="separator:a94fc7999ec1907245f51992efe70d097"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2773753c702fd8d42f8249990f73cb62"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedouble__conversion.html#a2773753c702fd8d42f8249990f73cb62">double_conversion::StrLength</a> (const char *string)</td></tr>
<tr class="separator:a2773753c702fd8d42f8249990f73cb62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18244d6d2e60e0f097fabae206477963"><td class="memTemplParams" colspan="2">template&lt;class Dest , class Source &gt; </td></tr>
<tr class="memitem:a18244d6d2e60e0f097fabae206477963"><td class="memTemplItemLeft" align="right" valign="top">Dest&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacedouble__conversion.html#a18244d6d2e60e0f097fabae206477963">double_conversion::BitCast</a> (const Source &amp;source)</td></tr>
<tr class="separator:a18244d6d2e60e0f097fabae206477963"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a240fadea2eaf5a7d52d766d8b424427a"><td class="memTemplParams" colspan="2">template&lt;class Dest , class Source &gt; </td></tr>
<tr class="memitem:a240fadea2eaf5a7d52d766d8b424427a"><td class="memTemplItemLeft" align="right" valign="top">Dest&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacedouble__conversion.html#a240fadea2eaf5a7d52d766d8b424427a">double_conversion::BitCast</a> (Source *source)</td></tr>
<tr class="separator:a240fadea2eaf5a7d52d766d8b424427a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a0eb9c6ce32a4965e51a34613bcb4eb2b"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedouble__conversion.html#a0eb9c6ce32a4965e51a34613bcb4eb2b">double_conversion::kCharSize</a> = sizeof(char)</td></tr>
<tr class="separator:a0eb9c6ce32a4965e51a34613bcb4eb2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a5f00183ae427b2e71b739a86afaf4d54"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ARRAY_SIZE</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">a</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">((<span class="keyword">sizeof</span>(a) / <span class="keyword">sizeof</span>(*(a))) /                         \</div><div class="line">  static_cast&lt;<span class="keywordtype">size_t</span>&gt;(!(<span class="keyword">sizeof</span>(a) % <span class="keyword">sizeof</span>(*(a)))))</div></div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a1dfb2cb545fa51edb2760047aa4ce45f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ASSERT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">condition</td><td>)</td>
          <td>&#160;&#160;&#160;(assert(condition))</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a8a33c52fbcec82e9f80752504cef5ec7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DISALLOW_COPY_AND_ASSIGN</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">TypeName</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">TypeName(<span class="keyword">const</span> TypeName&amp;);                    \</div><div class="line">  void operator=(<span class="keyword">const</span> TypeName&amp;)</div></div><!-- fragment -->
</div>
</div>
<a class="anchor" id="acfd97435e2829938f396946b00559b71"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DISALLOW_IMPLICIT_CONSTRUCTORS</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">TypeName</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">TypeName();                                    <a class="code" href="utils_8h.html#a8a33c52fbcec82e9f80752504cef5ec7">\</a></div><div class="line"><a class="code" href="utils_8h.html#a8a33c52fbcec82e9f80752504cef5ec7">  DISALLOW_COPY_AND_ASSIGN</a>(TypeName)</div><div class="ttc" id="utils_8h_html_a8a33c52fbcec82e9f80752504cef5ec7"><div class="ttname"><a href="utils_8h.html#a8a33c52fbcec82e9f80752504cef5ec7">DISALLOW_COPY_AND_ASSIGN</a></div><div class="ttdeci">#define DISALLOW_COPY_AND_ASSIGN(TypeName)        </div><div class="ttdef"><b>Definition:</b> utils.h:112</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="af60c14e9c588537ba3fd925be39e29cd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define UINT64_2PART_C</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">a, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">b&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;(((static_cast&lt;uint64_t&gt;(a) &lt;&lt; 32) + 0x##b##u))</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="add09d39ec888c2d7e12877586f29368d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define UNIMPLEMENTED</td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td>&#160;&#160;&#160;(abort())</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ad8fee49eb2770153a2dd95953f9b74e5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define UNREACHABLE</td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td>&#160;&#160;&#160;(abort())</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 18 2016 17:22:37 for XenC by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
